package com.dcxm.stu.service

import com.dcxm.stu.bean.HomeWork
import com.dcxm.stu.api.HomeWorkInfo
import org.springframework.stereotype.Service
import org.springframework.web.multipart.commons.CommonsMultipartFile

@Service
interface HomeWorkService {

    fun listHomeWork(): HomeWorkInfo
    fun insertHomeWork(homeWork: HomeWork, files: Array<CommonsMultipartFile>, path: String): HomeWorkInfo
    fun deleteHomeWork(id: String): HomeWorkInfo
    fun listSelectHomeWorkById(idList: Array<String>): HomeWorkInfo
    fun listSelectHomeWorkByType(type: String): HomeWorkInfo
    fun updateHomeWork(homeWork: HomeWork): HomeWorkInfo
}